package com.zw.admin.server.service;

import com.zw.admin.server.dto.Device.Iot;
import com.zw.admin.server.model.Device;
import com.zw.admin.server.model.ResponseBean;

import java.util.List;
import java.util.Map;

public interface DeviceService {

    public int saveOrUpdate(Device device);

    int count(Map<String, Object> params);

    List<Device> list(Map<String, Object> params, Integer offset, Integer limit);

    //更新设备状态
    public ResponseBean updateDeviceStates(String deviceId, String status);

    public void getOneDayData();
}
